package com.ruoyi.common.distributeLock.aspect;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author gim 2023/4/18 16:35
 */
@Aspect
@Component
public class LockAspect {
    public LockAspect(){}

    public static final String POINTCUT_SIGN=" @annotation(com.ruoyi.common.zk.annotation.DistributeLock) ";

    @Pointcut(POINTCUT_SIGN)
    public void pointcut(){

    }

    @Before("pointcut()")
    public Object around(ProceedingJoinPoint joinPoint) throws Throwable{
        return null;
    }
}
